#ifndef COMMENTRECORD_H
#define COMMENTRECORD_H

#include "ASTM.h"

class CommentRecord : public ASTM
{
public:
    enum Source {
        LIS = 0,
        Device
    };

    enum CommentType {
        Normal = 0,
        Error
    };

    CommentRecord();

    QString buildRecord() const;
    bool analyzeRecord(const QString &str);

public:
    int frameIndex = 1;
    //注释来源( LIS系统=S,仪器D
    Source source;
    //注释信息
    QString message;
    //注释类型(普通信息=C,错误信息=E)
    CommentType commentType = Normal;

private:
    QStringList sourceList{"S", "D"};
    QStringList commentList{"C", "E"};
};

#endif // COMMENTRECORD_H
